package de.hatraco.funderberg.blackjack.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import de.hatraco.funderberg.blackjack.data.GraphicsBlackJack;

public class TimeBlackJack {

	private static TimeBlackJack instance = new TimeBlackJack();
		
		public static TimeBlackJack getInstance() {
			if(instance == null) {
				instance = new TimeBlackJack();
			}
			return instance;
		}
		
	SimpleDateFormat date;
	String time;
	
	public TimeBlackJack() {
		
		this.date = new SimpleDateFormat("HH:mm");
		this.time = date.format(new Date());
	}

	public String getTime() {
		this.time = date.format(new Date());
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}
}
